/**
 * 绘制矩形
 * @param {*} n 
 * @param {*} color 
 * @param {*} reacType 
 * @param {*} width 
 */
function Rect(n,color,reacType,width){
	createjs.Shape.call(this);
	this.setRectType = function(type){
		this._RectType = type;
		switch (type){
			case 1:
				this.setColor(color);
				break;
			case 2:
				this.setColor(reacType);
				break;
		}
	}
	this.setColor = function(colorString){
		this.graphics.beginFill(colorString);
		this.graphics.drawRect(0,0,width/n-5,width/n-5);
		this.graphics.endFill();
	}
	this.getRectType = function(){
		return this._RectType;
	}
	this.setRectType(1);
}

//面向prototype（我是来搞笑的）
Rect.prototype = new createjs.Shape();